
package com.shangsi.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author dzd
 * @date 2021-12-19
 */
@FeignClient("seata-account")
public interface AccountFeignService {

    @PostMapping("decrease")
    Boolean decrease(@RequestParam("amount")Integer amount, @RequestParam("userId") Integer userId);

}
